package com.zlp.mall.portal.modules.pms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zlp.mall.portal.modules.pms.model.SkuStock;

import java.util.List;

/**
 * <p>
 * sku的库存 服务类
 * </p>
 *
 * @author ZouLiPing
 * @since 2021-10-13
 */
public interface SkuStockService extends IService<SkuStock> {

    /** 
     *  获取商品库存根据商品ID
     * @param productId
     * @date: 2021/10/14 14:29
     * @return: java.util.List<com.zlp.mall.portal.modules.pms.model.SkuStock> 
     */
    List<SkuStock> getByProductId(Long productId);

    /** 
     * 根据商品SkuId 获取SKU信息
     * @param productSkuId
     * @date: 2021/10/15 14:51
     * @return: com.zlp.mall.portal.modules.pms.model.SkuStock 
     */
    SkuStock getBySkuId(Long productSkuId);
}
